package com.ysten.basic.bean.entity.business;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;

@Entity
@Table(name = "business_picture")
public class Picture implements Serializable
{
    
    private static final long serialVersionUID = -3173525912837273053L;
    
    // 注释
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID")
    private Long id;
    
    // 注释
    @Column(name = "NAME")
    private String name;
    
    // 注释
    @Column(name = "PIC_URL")
    private String picUrl;
    
    public void setId(Long id)
    {
        this.id = id;
    }
    
    public Long getId()
    {
        return id;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setPicUrl(String picUrl)
    {
        this.picUrl = picUrl;
    }
    
    public String getPicUrl()
    {
        return picUrl;
    }
    
    @Override
    public String toString()
    {
        return ToStringBuilder.reflectionToString(this);
    }
}